<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>





























  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <style type="text/css">
html { font-family: Arial,Helvetica,sans-serif;
background-color: white;
color: black;
}
p { max-width: 60em;
}
table { border-collapse: collapse;
empty-cells: show;
margin: 1em 0em;
border: 0.1em solid black;
}
th, td {
border-style: solid;
border-width: 0.05em 0.1em;
border-color: black;
padding: 0.1em 0.2em;
height: 1.5em;
}
th {
background-color: rgb(192, 192, 192);
color: black;
border-width: 0.1em;
font-weight: bold;
text-align: center;
text-transform: capitalize;
letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
width: 10em;
}
.action , .value, .arg {
width: 15em;
}
/* Properties for the name column - td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
background-color: rgb(240, 240, 240);
text-transform: capitalize;
letter-spacing: 0.1em;
}
th { font-style: normal; } /* required for IE */
  </style>
  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <title>Robot Test Cases</title><link type="text/css" href="resources/css/testdata.css" rel="stylesheet"></head>
<body>





























<h1>Robot Test Cases for Collections Dictionary Test Library</h1>





























<br>





























<table border="1">




























 <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>





























    <th>Setting</th>





























    <th>Value</th>





























    <th>Value</th>





























    <th>value</th>





























    <th>Value</th>





























  </tr>





























  </thead> <tbody>





























    <tr>





























      <td>Resource</td>





























      <td>atest_resource.txt</td>





























      <td></td>





























      <td></td>





























      <td></td>





























    </tr>





























    



    <tr>


















      <td align="undefined" valign="undefined">Document</td>


















      <td align="undefined" valign="undefined">Tests for Collections library's dictionary functionality</td>


















      <td align="undefined" valign="undefined"></td>


















      <td align="undefined" valign="undefined"></td>


















      <td align="undefined" valign="undefined"></td>


















    </tr>


















    <tr>





























      <td>Force Tags</td>





























      <td>regression</td>





























      <td></td>

























      <td></td>





























      



      <td></td>





























    </tr>





























    



    <tr>













      <td align="undefined" valign="undefined">Default Tags</td>













      <td>jybot</td>













      <td>pybot</td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













    </tr>













    <tr>





























      <td>Suite Setup</td>





























      <td>Run Tests</td>





























      <td>--loglevel debug</td>





























      <td>standard_libraries${/}collections${/}dictionary.html</td>





























      <td></td>





























    </tr>





























  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  </tbody>
</table>





























<br>





























<table border="1">





























  <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>





























    <th>Variable</th>





























    <th>Value</th>





























    <th>Value</th>





























    <th>Value</th>





























    <th>Value</th>





























  </tr>





























  </thead> <tbody>





























    <tr>





























      <td></td>





























      <td></td>





























      <td></td>





























      <td></td>





























      <td></td>





























    </tr>





























  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  </tbody>
</table>





























<br>





























<table border="1">





























  <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
  <thead><tr>





























    <th>Test Case</th>





























    <th>Action</th>





























    <th>Argument</th>





























    <th>Argument</th>





























    <th>Argument</th>





























    





























  </tr>





























  </thead> <tbody>





























    





























    





























    





























    






    

































    





    






    





























    







































    


























    


























    





























    





























    




















    




























    





















    





















    





















    





















    





















    





















    









    




























    





























    





























    




























    





















    





















    





















    <tr>




















      <td align="undefined" valign="undefined">Create Dictionary</td>




















      <td>Check Test Case</td>




















      <td>Create Dictionary</td>




















      <td></td>




















      <td align="undefined" valign="undefined"></td>




















      




















    </tr>




















    <tr>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      




















    </tr>




















    <tr>




















      <td align="undefined" valign="undefined">Create Dictionary with wrong number of arguments</td>




















      <td align="undefined" valign="undefined">Check Test Case</td>




















      <td align="undefined" valign="undefined">Create Dictionary with wrong number of arguments</td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      




















    </tr>




















    <tr>




























      <td></td>




























      <td></td>




























      <td></td>




























      <td></td>




























      <td></td>




























      




























    </tr>




























    <tr>





















      <td align="undefined" valign="undefined">Set To Dictionary</td>





















      <td>Check Test Case</td>





















      <td>Set To Dictionary</td>





















      <td></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td></td>












      <td></td>












      <td></td>





















      








      








      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>




















      <td align="undefined" valign="undefined">Set To Dictionary With wrong number of arguments</td>




















      <td align="undefined" valign="undefined">Check Test Case</td>




















      <td align="undefined" valign="undefined">Set To Dictionary With wrong number of arguments</td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      




















    </tr>




















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td></td>





















      <td></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined">Remove From Dictionary</td>





















      <td>${test case} =</td>





















      <td>Check Test Case</td><td>Remove From Dictionary</td>





















      





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td>Check Log Message</td><td>${test case.kws[0].msgs[0]}</td><td>Removed item with key 'b' and value '2'\n<br>Key 'x' not found\n<br>Key '2' not found</td>





















      





















      





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr><td></td><td></td><td></td><td></td><td></td></tr><tr>





















      <td align="undefined" valign="undefined">Keep In Dictionary</td>





















      <td align="undefined" valign="undefined">Check Test Case</td>





















      <td align="undefined" valign="undefined">Keep In Dictionary</td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td></td>





















      <td></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td>Copy Dictionary</td>





















      <td>Check Test Case</td>





















      <td>Copy Dictionary</td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td>Get Dictionary Keys</td>





















      <td align="undefined" valign="undefined">Check Test Case</td>





















      <td align="undefined" valign="undefined">Get Dictionary Keys</td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td></td>





















      <td></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td>Get Dictionary Values</td>





















      <td align="undefined" valign="undefined">Check Test Case</td>





















      <td align="undefined" valign="undefined">Get Dictionary Values</td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined"></td>





















      <td></td>





















      <td></td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





















      <td align="undefined" valign="undefined">Get Dictionary Items</td>





















      <td align="undefined" valign="undefined">Check Test Case</td>





















      <td align="undefined" valign="undefined">Get Dictionary Items</td>





















      <td align="undefined" valign="undefined"></td>





















      <td align="undefined" valign="undefined"></td>





















      





















    </tr>





















    <tr>





























      <td></td>





























      <td></td>





























      <td></td>





























      <td></td>





























      <td></td>





























      





























    </tr>





























    




    <tr>




























      <td>Get From Dictionary</td>




























      <td>Check Test Case</td>
























      <td>Get From Dictionary</td>




























      <td></td>




























      <td></td>




























      




























    </tr>




























    <tr>




























      <td></td>




























      <td></td>




























      <td></td>




























      <td></td>




























      <td></td>




























      




























    </tr>




























    <tr>





























      <td>Get From Dictionary With Invalid Key</td>





























      <td>Check Test Case</td>





























      <td>Get From Dictionary With Invalid Key</td>




























      <td></td>





























      <td></td>





























      





























    </tr>





























    <tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Key</td><td>Check Test Case</td><td>Dictionary Should Contain Key</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Key With Missing Key</td><td>Check Test Case</td><td>Dictionary Should Contain Key With Missing Key</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Not Contain Key</td><td>Check Test Case</td><td>Dictionary Should Not Contain Key</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Not Contain Key With Existing Key</td><td>Check Test Case</td><td>Dictionary Should Not Contain Key With Existing Key</td><td></td><td></td></tr><tr>



























      <td></td><td></td><td></td>



























      



























      



























      <td></td>



























      <td></td>



























      



























    </tr>



























    






























    



























    <tr><td>Dictionary Should Contain Value</td><td>Check Test Case</td><td>Dictionary Should Contain Value</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain&nbsp;Value With Missing&nbsp;Value</td><td>Check Test Case</td><td>Dictionary Should Contain&nbsp;Value With Missing&nbsp;Value</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr>





























      <td>Dictionary Should Not Contain&nbsp;Value</td>





























      <td>Check Test Case</td>





























      <td>Dictionary Should Not Contain&nbsp;Value</td>





























      <td></td>





























      <td></td>





























      





























    </tr>




































    <tr>





























      <td></td>





























      <td></td>














      <td></td>





























      














      <td></td>





























      <td></td>





























      





























      






    </tr>






















    <tr>














      <td align="undefined" valign="undefined">Dictionary Should Not Contain Value With Existing&nbsp;Value</td>














      <td>Check Test Case</td>














      <td>Dictionary Should Not Contain Value With Existing&nbsp;Value</td>














      <td align="undefined" valign="undefined"></td>














      <td align="undefined" valign="undefined"></td>














      














    </tr>














    <tr>














      <td align="undefined" valign="undefined"></td>














      <td align="undefined" valign="undefined"></td>














      <td align="undefined" valign="undefined"></td>














      <td align="undefined" valign="undefined"></td>














      <td align="undefined" valign="undefined"></td>














      














    </tr>














    <tr>






















      <td>Dictionaries Should Be Equal</td>






















      <td>Check Test Case</td>






















      <td>Dictionaries Should Be Equal</td>






















      <td align="undefined" valign="undefined"></td>






















      <td align="undefined" valign="undefined"></td>






















      






















    </tr>




















    <tr>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>













      <td>Dictionaries Should&nbsp;Equal With First Dictionary Missing Keys</td><td>Check Test Case</td>













      













      <td align="undefined" valign="undefined">Dictionaries Should&nbsp;Equal With First Dictionary Missing Keys</td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr><td>Dictionaries Should&nbsp;Equal With Second Dictionary Missing Keys</td><td>Check Test Case</td><td align="undefined" valign="undefined">Dictionaries Should&nbsp;Equal With Second Dictionary Missing Keys</td><td></td><td></td></tr><tr><td>Dictionaries Should&nbsp;Equal With Both Dictionaries Missing Keys</td><td>Check Test Case</td><td align="undefined" valign="undefined">Dictionaries Should&nbsp;Equal With Both Dictionaries Missing Keys</td><td></td><td></td></tr><tr>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Keys And Own Error Message</td>













      <td align="undefined" valign="undefined">Check Test Case</td>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Keys And Own Error Message</td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Keys And Own And Default Error Messages</td>













      <td align="undefined" valign="undefined">Check Test Case</td>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Keys And Own And Default Error Messages</td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      <td align="undefined" valign="undefined"></td>




















      




















    </tr>













    <tr>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Values</td>













      <td align="undefined" valign="undefined">Check Test Case</td>













      <td align="undefined" valign="undefined">Dictionaries Should Be Equal With Different Values</td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>













    <tr>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      <td align="undefined" valign="undefined"></td>













      













    </tr>










    <tr>




      <td>Dictionaries Should Be Equal With Different Values And Own Error Message</td>




      <td>Check Test Case</td>




      <td>Dictionaries Should Be Equal With Different Values And Own Error Message</td>




      <td></td>




      <td></td>




      




    </tr>




    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    

    

    
    
    
    

    

    

    

    

    

    
    

    

    

    

    








    
    <tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionaries Should Be Equal With Different Values And Own And Default Error Messages</td><td>Check Test Case</td><td>Dictionaries Should Be Equal With Different Values And Own And Default Error Messages</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Sub Dictionary</td><td>Check Test Case</td><td>Dictionary Should Contain Sub Dictionary</td><td></td><td></td></tr><tr><td></td><td><br></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Sub Dictionary With Missing Keys</td><td>Check Test Case</td><td>Dictionary Should Contain Sub Dictionary With Missing Keys</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Sub Dictionary With&nbsp;Missing Keys And Own Error Message</td><td>Check Test Case</td><td>Dictionary Should Contain Sub Dictionary With&nbsp;Missing Keys And Own Error Message</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Sub Dictionary With&nbsp;Missing Keys And Own And Default Error Message</td><td>Check Test Case</td><td>Dictionary Should Contain Sub Dictionary With&nbsp;Missing Keys And Own And Default Error Message</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Dictionary Should Contain Sub Dictionary&nbsp;With Different Value</td><td>Check Test Case</td><td>Dictionary Should Contain Sub Dictionary With Different Value</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr>










      <td>Dictionary Should Contain Sub Dictionary With&nbsp;Different Value And Own Error Message</td>










      <td>Check Test Case</td>










      <td>Dictionary Should Contain Sub Dictionary With&nbsp;Different Value And Own Error Message</td>










      <td></td>










      <td></td>










      










    </tr>









    <tr>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      









    </tr>









    <tr>









      <td>Dictionary Should Contain Sub Dictionary With&nbsp;Different Value And Own And Default Error Message</td>









      <td>Check Test Case</td>









      <td>Dictionary Should Contain Sub Dictionary With&nbsp;Different Value And Own And Default Error Message</td>









      <td></td>









      <td></td>









      









    </tr>









    <tr>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      









    </tr>









    









    









    <tr><td>Log Dictionary With Different Log Levels</td><td>${tc} =</td><td>Check Test Case</td><td>Log Dictionary With Different Log Levels</td><td></td></tr><tr><td></td><td>${expected} =</td><td>Set Variable</td><td>Dictionary size is 3 and it contains following items:\n<br>3: None\n<br>a: 1\n<br>b: 2 </td><td></td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[0].msgs[0]}</td><td>${expected}</td><td>INFO</td></tr><tr><td></td><td>Variable Should Not Exist</td><td>${tc.kws[1].msgs[0]}</td><td></td><td></td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[2].msgs[0]}</td><td>${expected}</td><td>WARN</td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[3].msgs[0]}</td><td>${expected}</td><td>DEBUG</td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[4].msgs[0]}</td><td>${expected}</td><td>INFO</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Log Dictionary With Different Dictionaries</td><td>${tc} =</td><td>Check Test Case</td><td>Log Dictionary With Different Dictionaries</td><td></td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[0].msgs[0]}</td><td>Dictionary is empty<br></td><td>INFO</td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[1].msgs[0]}</td><td>Dictionary has one item:\n<br>a: 1</td><td>INFO</td></tr><tr><td></td><td>Check Log Message</td><td>${tc.kws[4].msgs[0]}</td><td>Dictionary size is&nbsp;2 and it contains following items:\n<br>(1, 2, 3): 3.12\n<br>1: 2&nbsp;</td><td>INFO</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr>




















    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
    

    
    

    

    

    










  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  </tbody>
</table>





























<br>





























<table border="1">





























  <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
  <thead><tr>





























    <th>Keyword</th>





























    <th>Action</th>





























    <th>Argument</th>





























    <th>Argument</th>





























    <th>Argument</th>





























  </tr>





























  </thead> <tbody>





























    



























    



























    



























    


    


    


    


    


    


    


    


    


    <tr>




      <td></td>




      <td></td>




      <td></td>




      <td></td>




      <td></td>




    </tr>





























  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  </tbody>
</table>





























</body></html>